package com.letoken.platform.repo.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 充值资金归集地址配置表
 * </p>
 *
 * @author 作者
 * @since 2022-11-24
 */
@Getter
@Setter
@TableName("admin_recharge_config")
@ApiModel(value = "AdminRechargeConfig对象", description = "充值资金归集地址配置表")
public class AdminRechargeConfig extends Model<AdminRechargeConfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
      @TableId(value = "id")
    private Integer id;

    @ApiModelProperty("token的主键id")
    @TableField("token_id")
    private Integer tokenId;

    @ApiModelProperty("提现钱包地址")
    @TableField("extract_address")
    private String extractAddress;

    @ApiModelProperty("提现钱包比例")
    @TableField("extract_ratio")
    private Integer extractRatio;

    @ApiModelProperty("手续费钱包地址	")
    @TableField("procedures_address")
    private String proceduresAddress;

    @ApiModelProperty("手续费钱包比例")
    @TableField("procedures_ratio")
    private Integer proceduresRatio;

    @ApiModelProperty("归集门槛数量")
    @TableField("collection_limit")
    private BigDecimal collectionLimit;

    @ApiModelProperty("归集资金分配门槛")
    @TableField("dispatch_limit")
    private BigDecimal dispatchLimit;

    @ApiModelProperty("是否禁用")
    @TableField("locked")
    private Boolean locked;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("归集钱包地址")
    @TableField("collection_address")
    private String collectionAddress;

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
